package com.kb.design.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

@Data
public class DesignOrderDetailDTO {

    private String customerContact;
    private String customerPhone;
    private String customerEmail;

    private String salePhone;
    private String salesName;
    private String saleEmail;

    /**
     *  加工文件
     */
    private String processingDocument;

    //订单信息
    /**
     * 客户行业
     */
    private String customerProfession;
    /**
     * 客户名称
     */
    private String customerName;
    /**
     * 合同号
     */
    private String contractNo;
    /**
     * 订单日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date orderDate;
    /**
     * 贸易路径
     */
    private String tradeDesc;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime deliveryDate;

    /**
     * 项目信息
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private LocalDate loadingPlateTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private LocalDate warehousingTime;
    private String salesArea;

    private Integer designDepartments;
    private String responsiblePersonId;
    private String designLeader;
    private String valorLeader;
    private String pageLeader;
    private String packageCompetent;
    private String deptName;

    private String engineeringUrl;
    /**
     * 合同金额
     */
    private BigDecimal totalAmount;
}
